﻿using Domain.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configers
{
    public class EAConfigers : IEntityTypeConfiguration<EA>
    {
        public void Configure(EntityTypeBuilder<EA> builder)
        {
            builder.ToTable(nameof(EA));
            builder.Property(x => x.AnswerNumber).IsRequired(false).HasMaxLength(2);
            builder.Property(x => x.ExamNumber).IsRequired(false).HasMaxLength(2);
            builder.Property(x => x.ResumeId).IsRequired(false).HasMaxLength(2);
            builder.Property(x => x.InterviewIid).IsRequired(false).HasMaxLength(2);
            builder.Property(x => x.HumanName).IsRequired(false).HasMaxLength(6);
            builder.Property(x => x.HumanIdcard).IsRequired(false).HasMaxLength(18);
            builder.Property(x => x.MajorKindId).IsRequired(false).HasMaxLength(2);
            builder.Property(x => x.MajorKindName).IsRequired(false).HasMaxLength(60);
            builder.Property(x => x.MajorId).IsRequired(false).HasMaxLength(2);
            builder.Property(x => x.MajorName).IsRequired(false).HasMaxLength(60);
            builder.Property(x => x.TestTime).IsRequired(false);
            builder.Property(x => x.UseTime).IsRequired(false);
            builder.Property(x => x.TotalPoint).IsRequired(false);
        }
    }
}
